package com.java.collections.color;

import java.util.List;


public class ColorOperation{
	 
	String color;
	
	 public ColorOperation(){}
	 
	 public ColorOperation(String c)
	 { this.color = c;
	 }
	
public List<String> delete(String color,List<String> c1)
    {
	 for(int i=0;i<c1.size(); i++)
		 if(c1.contains(color)) 
		 {    c1.remove(color);
		    }
	 
	return c1;
     }

public void display(List<String> list)
{
	System.out.println("\n" +list);
}
public void displaySize(List<String> list)
    {
	  int a = list.size();
	  System.out.println(" ******  new size of the list is" +"*******" +"\n"+a);
    }
}

	 
